<script setup name="App" lang="ts">
import useCounterStore from './store/counter'
// !#3 调用一下生成仓库
const counterStore = useCounterStore()
</script>
<template>
  <div>
    <p>count: {{ counterStore.count }}</p>
    <button @click="counterStore.addCount">+1</button>
    <button @click="counterStore.addCountAsync">async +1</button>
  </div>
</template>
